<page-header [action]="phActionTpl">
  <ng-template #phActionTpl>
    <button (click)="query()" nz-button>搜索</button>
    <button (click)="export()" nz-button>导出</button>
  </ng-template>
</page-header>

<nz-card>
  <sf #sf mode="search" [schema]="searchSchema" (formReset)="st.reload()" [button]="null" autocomplete="off"></sf>

  <lb-grid #st  [columns]="columns"  [sname]="params.sname" [queryparas]="params.form">
    <ng-template lb-row="custom" let-item let-index="index">
      <nz-switch [ngModel]="item.AAE100=='1'" nzCheckedChildren="启用" nzUnCheckedChildren="停用" (ngModelChange)="changeState(item)" ></nz-switch>
    </ng-template>
  </lb-grid>

</nz-card>
